package cn.itsource.org.domain;

import cn.itsource.basic.domain.BaseDomain;
import cn.itsource.basic.domain.CreatePassword;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Table;

/**
 * @title: Employee
 * @Author qinzhaoyang
 * @Date: 2022/11/8 14:31
 * @description: 员工实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "t_employee")
@ApiModel(value = "员工对象", description = "员工对象")
public class Employee extends BaseDomain implements CreatePassword {

    //用户名
    private String username;
    //邮箱
    private String email;
    //手机号码
    private String phone;
    //登录密码
    private String password;
    //盐值
    private String salt;
    //年龄
    private Integer age;
    //状态(0禁用,1启用)
    private Integer state;
    //所属部门id
    private Long departmentId;
    //登录信息id
    private Long logininfoId;
    //所属店铺id
    private Long shopId;
    //员工的上级经理ID
    private Long parentId;
    //员工的上级经理id
    private Long managerId;
}
